<template>
  <div>
    <button @click="test">获取</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      param: {}
    }
  },
  mounted() {
    this.test()
  },
  methods: {
    async test() {
      // const res = await this.$http.post('/api/citys_indexs',{date:['2013-01','2013-02','2013-03'],type:'quarter',main:'AQI'})
      const res = await this.$http.post('/api/mapData', {
        date: ['2013-04', '2013-05', '2013-06'],
        type: 'quarter',
        main: 'AQI'
      })
      // const res = await this.$http.post('/api/cluster_main_index',{startDate:'2013-01',endDate:'2013-10',type:'quarter',main:'AQI'})
      console.log(res)
    }
  }
}
</script>

<style>
</style>
